package com.xx.sg.dbw.service.impl;

import com.xx.sg.dbw.mapper.AlarmCountMapper;
import com.xx.sg.dbw.service.AlarmCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AlarmCountServiceImpl implements AlarmCountService {

    @Autowired
    private AlarmCountMapper alarmCountMapper;

    @Override
    public Map<String, String> alarmHistoryClassifyCount() {
        return alarmCountMapper.alarmHistoryClassifyCount();
    }

    @Override
    public Map<String, String> alarmHistoryStatusCount() {
        return alarmCountMapper.alarmHistoryStatusCount();
    }

    @Override
    public List<Map<String, Object>> alarmHistoryClassifyDayCount() {
        return alarmCountMapper.alarmHistoryClassifyDayCount();
    }
}
